﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>企业-登录</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/jquery.form/4.2.0/jquery.form.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
              $("#companyForm").submit(function () {
                $("#login").button('loading');
            });
            $("#companyForm").ajaxForm(function (message) {
                if (message.returnCode == "001") {
                    $("#login").button('loading').button('reset');
                    location.href = "/Position/GetComPosition?email=" + message.email+"&status=1";
                }
                else if (message.returnCode == "999") {
                    alert("登录失败！公司名称或邮箱或密码错误！");
                    $("#login").button('loading').button('reset');
                }
            });

});
    </script>
</head>
<body style="background-image:url(/background-image/login-bg-autumn.jpg)">
    <div style="margin-top: 150px;">
        <div class="container">
            <div class="row clearfix">
                <div class="col-md-4 column">
                </div>
                <div class="col-md-4 column">
                    <form action="/Company/CompanyLogin" method="post" id="companyForm">
                        <div class="form-group">
                            <label>企业名称</label>
                            <input type="text" class="form-control" name="companyName" placeholder="请输入企业名称..." required />
                        </div>
                        <div class="form-group">
                            <label>企业邮箱</label>
                            <input type="email" class="form-control" name="email" placeholder="请输入企业邮箱..." required autofocus />
                        </div>
                        <div class="form-group">
                            <label>密码</label>
                            <input type="password" class="form-control" name="Password" placeholder="请输入密码..." required />
                        </div>
                        <button type="submit" id="login" class="btn btn-default btn-info btn-block" data-loading-text="登录中...">登录</button>
                        <a href="/Company/CompanyRegister" class="btn btn-default btn-warning btn-block">注册</a>
                    </form>
                </div>
                <div class="col-md-4 column">
                </div>
            </div>
        </div>
    </div>
</body>
</html>
